// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

const {ccclass, property, requireComponent} = cc._decorator;


export enum CellType {
    数字,
    横向连接,
    竖向连接,
    连接部分,
    横向炸弹,
    竖向炸弹,
    圆炸弹,
}
@ccclass
export default class Cell extends cc.Component {

    index: number;
    type: CellType;
    num: number;
    pair: Cell;

    get isBomb(): boolean {
        return this.type == CellType.圆炸弹 || this.type == CellType.竖向炸弹 || this.type == CellType.横向炸弹;
    }
}
